<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<fieldset><legend>治疗过程</legend>
<table class="list">
	<thead>
		<tr>
			<th colspan="8">治疗</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td class="right">日期：</td>
			<td class="left"><c:out value="${treatment.treatmentTime}" /></td>
			<td class="right">空腹血糖：</td>
			<td class="left"><c:out value="${treatment.emptyBloodSugar}" />mmol/L</td>
			<td class="right">餐后2H血糖：</td>
			<td class="left"><c:out value="${treatment.twoHourBloodSugar}" />mmol/L</td>
			<td class="right">运动量：</td>
			<td class="left"><c:out value="${treatment.sportTime}" />分钟</td>
		</tr>
		<tr>
			<td class="right">病情变化：</td>
			<td colspan="7" class="left"><c:out value="${treatment.condition}" /></td>
		</tr>
	</tbody>
</table>
<table class="list">
	<thead>
		<tr>
			<th>西药</th>
			<th>用量</th>
			<th>早</th>
			<th>中</th>
			<th>晚</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${treatment.westernMedicines}" var="westernMedicine"
			varStatus="varStatus">
			<c:set var="tr_class"
				value="${varStatus.index % 2 == 0 ? 'odd' : 'even'}" />
			<tr class="${tr_class}">
				<td><c:out value="${westernMedicine.westernMedicineName}" />&nbsp;</td>
				<td><c:out value="${westernMedicine.westernMedicineDose}" />&nbsp;片（粒）</td>
				<td><c:out value="${westernMedicine.morningWesternMedicineDose}" />&nbsp;片（粒）</td>
				<td><c:out value="${westernMedicine.noonWesternMedicineDose}" />&nbsp;片（粒）</td>
				<td><c:out value="${westernMedicine.nightWesternMedicineDose}" />&nbsp;片（粒）</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<table class="list">
	<thead>
		<tr>
			<th>胰岛素</th>
			<th>早</th>
			<th>中</th>
			<th>晚</th>
			<th>睡前</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td><c:out value="${treatment.insulinDrugName}" />&nbsp;</td>
			<td><c:out value="${treatment.morningInsulinDose}" />&nbsp;片（粒）</td>
			<td><c:out value="${treatment.noonInsulinDose}" />&nbsp;片（粒）</td>
			<td><c:out value="${treatment.nightInsulinDose}" />&nbsp;片（粒）</td>
			<td><c:out value="${treatment.bedtimeInsulinDose}" />&nbsp;片（粒）</td>
		</tr>
	</tbody>
</table>

<table class="list">
	<thead>
		<tr>
			<th>中药</th>
			<th>用量</th>
			<th>早</th>
			<th>中</th>
			<th>晚</th>	
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${treatment.chineseMedicines}" var="chineseMedicine"
			varStatus="varStatus">
			<c:set var="tr_class"
				value="${varStatus.index % 2 == 0 ? 'odd' : 'even'}" />
			<tr class="${tr_class}">
				<td><c:out value="${chineseMedicine.chineseMedicineName}" />&nbsp;</td>
				<td><c:out value="${chineseMedicine.chineseMedicineDose}" />&nbsp;片（粒）</td>
				<td><c:out value="${chineseMedicine.morningChineseMedicineDose}" />&nbsp;片（粒）</td>
				<td><c:out value="${chineseMedicine.noonChineseMedicineDose}" />&nbsp;片（粒）</td>
				<td><c:out value="${chineseMedicine.nightChineseMedicineDose}" />&nbsp;片（粒）</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
</fieldset>
<div style="text-align: center; height: 25px;"><a class="submit"
	href="${ctx}/treatment/edit.do?treatmentId=${treatment.treatmentId}">修&nbsp;&nbsp;&nbsp;改</a>
</div>
